package com.abc.springboot.mapper;

import com.abc.springboot.pojo.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {
    //查找全部user
    public List<User> selectUsers();
    //通过账号（手机号）查找user
    public User selectUserByAccount(long account);
    //增加一个user
    public void insertUser(User user);
    //通过账号修改user
    int updateUserByAccount(User user);
    //通过账号修改密码
    int updateUserPassword(User user);
}
